<?php

namespace app\console\validate;

use think\Validate;

class AuthValidate extends Validate
{
    protected $rule = [
        'password|密码'       =>  'require|max:18|min:6',
        'username|用户名'     => 'require|max:10',
    ];

    protected $scene = [
        'login' => ['username', 'password'],
    ];

}